package com.ssm.dao;

import com.ssm.pojo.Bill;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface BillMapper {
    List<Bill> getBillList(@Param("productName") String productName, @Param("providerId") Integer providerId, @Param("isPayment") Integer isPayment, @Param("offset") int offset, @Param("pageSize") int pageSize);
    int getBillCount(@Param("productName") String productName, @Param("providerId") Integer providerId,@Param("isPayment") Integer isPayment);
    Bill getBillById(@Param("id") String id);
    int modifyBill(@Param("billCode") String billCode,@Param("productName")  String productName, @Param("productUnit") String productUnit, @Param("productCount") BigDecimal productCount, @Param("totalPrice") BigDecimal totalPrice, @Param("providerId") Integer providerId, @Param("isPayment") Integer isPayment);
    int deleteBillById(@Param("id") String id);
}
